<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
 *
 * @package     anime
 * @author      Do Ngoc Son (ngocson2306@gmail.com)
 * @copyright   PHP TEAM
 * @link        http://phpandmysql.net
 * @since       Version 1.0
 * @phone       0982644370
 *
 */
class Errorep_model extends MY_Model{
	public $table = 'error_ep';
	public $key   = 'iderror';
	public function __construct(){
		parent:: __construct();
		
	}

  public function save($id=false,$data=array()){
  	if(!$id){
  		$this->insert($data);
  	}
  	$result = $this->update($id,$data);
  	if($result){
  		return $id;
  	}
  	return false;
  }

}